const userInfo = {
  userID: '202111182017',
  name: '萧瑟鸣风',
  avatar: '',
  myPublished: [],
  myGetStar: 51,
  myFans: 0,
  myFocus: 31,
}

export function login() {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      if(Math.random() > 0) {
        resolve(userInfo)
      } else {
        reject({ error: 'impossible' })
      }
    }, 2000)
  })
}